module.exports = {
  // 数据库配置
  dbConfig: {
    dialect: "mysql",
    host: "113.44.155.182",
    port: 3306,
    database: "express_node",
    username: "cyy",
    password: "Txsb112233!!",
    timezone: "+08:00",
    logging: true, // 开启sql数据库日志
    dialectOptions: {
      dateStrings: true,
      typeCast(field, next) {
        if (field.type === "DATETIME") {
          return field.string();
        }
        return next();
      },
    },
  },
  redisConfig: {
    host: "113.44.155.182",
    port: 6379,
    password: "",
  },
  // Jwt配置
  jwtConfig: {
    jwtSecretKey: "vue_permission_jwt_secret_key", // token秘钥
    expires: "8h", // token有效期
  },
  wxConfig: {
    appId: "wxb6ae07aa5e0f614b",
    appSecret: "70a43cea9595efc0ddd1b9dc90438461",
  },
  // 线上图片存储地址
  filePath: "/www/wwwroot/permission_assets",
};
